<template>
	<view class="iconfont icon-shipinbofang" @click="uploadVideo">

	</view>
</template>

<script>
	import upLoadFile from '../../../utils/upLoadFile.js'
	import MyMessage from '../../../utils/MyMessage.js'

	export default {


		methods: {
			uploadVideo() {
				uni.chooseVideo({
					sourceType: ['camera', 'album'],
					success:async (res) => {
						var message= new MyMessage({accept_type:this.$store.state.chat.chatObjectInfo.chatObjectData.accept_type,type:3,content:res.tempFilePath,ws:this.$store.state.chat.ws})
						message.addMessageList(message)
						
					}
				})

			},
		}
	}
</script>

<style scoped>
	.iconfont {
		color: #07DC00;
		margin-left: 20rpx;

	}



	.icon-shipinbofang {
		font-size: 70rpx;
	}
</style>
